package mms.swordsmithcraft.common;

import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.SidedProxy;
import cpw.mods.fml.common.event.FMLInitializationEvent;
import cpw.mods.fml.common.event.FMLPostInitializationEvent;
import cpw.mods.fml.common.event.FMLPreInitializationEvent;
import cpw.mods.fml.common.registry.GameRegistry;
import mms.swordsmithcraft.item.ItemSword;
import net.minecraft.item.Item;

@Mod(modid = SwordSmithCraft.MODID, name = SwordSmithCraft.NAME, version = SwordSmithCraft.VERSION)
public class SwordSmithCraft {
    public static final String MODID = "swordsmithcraft";
    public static final String NAME = "SwordSmithCraft";
    public static final String VERSION = "0.0.1v";

    @Mod.Instance(SwordSmithCraft.MODID)
    public static SwordSmithCraft instance;

    @SidedProxy(clientSide = "mms.swordsmithcraft.client.ClientProxy",
            serverSide = "mms.swordsmithcraft.common.CommonProxy")
    public static CommonProxy proxy;

    @Mod.EventHandler
    public void preInit(FMLPreInitializationEvent event) {
        GameRegistry.registerItem(new ItemSword(Item.ToolMaterial.GOLD),"sword");
    }

    @Mod.EventHandler
    public void init(FMLInitializationEvent event) {
        proxy.init(event);
    }

    @Mod.EventHandler
    public void postInit(FMLPostInitializationEvent event) {
        proxy.postInit(event);
    }
}
